cmake_minimum_required(VERSION 2.6)
project(cerescurvefit)

find_package(OpenCV REQUIRED)
find_package(Ceres REQUIRED)

include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${CERES_INCLUDE_DIRS})

link_libraries(${CERES_LIBRARY_DIRS})
link_libraries(${OpenCV_LIBRARY_DIRS})

add_executable(cerescurvefit main.cpp)

target_link_libraries(cerescurvefit ${OpenCV_LIBS})
target_link_libraries(cerescurvefit ${CERES_LIBRARIES})

install(TARGETS cerescurvefit RUNTIME DESTINATION bin)
